<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
  <body>
    <!-- Top navigation bar -->
<div id="topNav">
    <div class="fixed">
        <div class="wrapper" style="width:1227px" >
            <div class="welcome"><?php echo image_tag("userPic.png")?><span>Hello, <?php echo $sf_user->getAttribute('user_name')?>! </span> </div>
            
            <div style=" height: 40px; left: 1176px; position: fixed; top: 1px; width: 50px;"><div id="filter_ajax_loader" style="display: none;"><?php echo image_tag("loaders/loader.gif", array('class'=>'p12')) ?> </div></div>
            
            <div class="userNav">
                <ul>
                    <li><a href="<?php echo url_for('login/logout')?>" title=""><?php echo image_tag("icons/topnav/logout.png")?><span>Logout</span></a></li>
                </ul>
            </div>
                        
            <div class="fix"></div>
        </div>
    </div>
</div>

<div style="margin-top:10px;"></div>


<!-- Content wrapper -->
<div class="wrapper" style="width:1237px">
	
	<!-- Left navigation -->
	<div class="leftNav" id="menu_content">
    	<ul id="menu">
        	
    	<?php $class = $sf_context->getModuleName() == 'directories' ? 'active' : ''; ?>
        	<li class="dash"><a href="<?php echo url_for("directories/index")?>" title="" class="<?php echo $class?>"><span>Directories</span></a></li>
        	
        <?php $class = $sf_context->getModuleName() == 'categories' ? 'active' : ''; ?>
            <li class="graphs"><a href="<?php echo  url_for("categories/index")?>" title="" class="<?php echo $class?>"><span>Categories</span></a></li>
            
        <?php $class = $sf_context->getModuleName() == 'category_levels' ? 'active' : ''; ?>
            <li class="graphs"><a href="<?php echo  url_for("category_levels/index")?>" title="" class="<?php echo $class?>"><span>Category Levels</span></a></li>
                        
        <?php $class = $sf_context->getModuleName() == 'category_content' ? 'active' : ''; ?>
            <li class="graphs"><a href="<?php echo  url_for("category_content/index")?>" title="" class="<?php echo $class?>"><span>Category Content</span></a></li>
                        
        <?php // $class = $sf_context->getModuleName() == 'content_types' ? 'active' : ''; ?>
     <!--        <li class="gallery"><a href="<?php //echo  url_for("content_types/index")?>" title="" class="<?php //echo $class?>"><span>Content Types</span></a></li>
           -->  
            
        <?php $class = $sf_context->getModuleName() == 'templates' || $sf_context->getModuleName() == 'template_content' || $sf_context->getModuleName() == 'comment_fields'  ? 'active' : ''; ?>
            <li class="gallery"><a href="<?php echo  url_for("templates/index")?>" title="" class="<?php echo $class?>"><span>Template Definition</span></a></li>

        <?php $class = $sf_context->getModuleName() == 'search_configuration' ? 'active' : ''; ?>
            <li class="gallery"><a href="<?php echo  url_for("search_configuration/index")?>" title="" class="<?php echo $class?>"><span>Search Configuration</span></a></li>
            
        <?php $class = $sf_context->getModuleName() == 'listing' || $sf_context->getModuleName() == 'listing_content' || $sf_context->getModuleName() == 'listing_selection' ? 'active' : ''; ?>
            <li class="gallery"><a href="<?php echo  url_for("listing/index")?>" title="" class="<?php echo $class?>"><span>Listing</span></a></li>
        <?php if ($sf_user->getAttribute('rol_id') == sfConfig::get('app_admin')){?>
        
        <?php $class = $sf_context->getModuleName() == 'directorylanguages' ? 'active' : ''; ?>
            <li class="gallery"><a href="<?php echo  url_for("directorylanguages/index")?>" title="" class="<?php echo $class?>"><span>Languages</span></a></li>            

        <?php $class = $sf_context->getModuleName() == 'frontend_labels' ? 'active' : ''; ?>
            <li class="gallery"><a href="<?php echo  url_for("frontend_labels/index")?>" title="" class="<?php echo $class?>"><span>Labels</span></a></li>            
            
       <?php $class = $sf_context->getModuleName() == 'user_actions_trace' ? 'active' : ''; ?>
            <li class="gallery"><a href="<?php echo  url_for("user_actions_trace/index")?>" title="" class="<?php echo $class?>"><span>Traces</span></a></li>                        
                    
       <?php $class = $sf_context->getModuleName() == 'users' ? 'active' : ''; ?>
            <li class="gallery"><a href="<?php echo  url_for("users/index")?>" title="" class="<?php echo $class?>"><span>Users</span></a></li>           
		<?php }?>           
		
		<?php $class = $sf_context->getModuleName() == 'sitemap' ? 'active' : ''; ?>
            <li class="graphs"><a href="<?php echo  url_for("sitemap/index")?>" title="" class="<?php echo $class?>"><span>Generate sitemaps</span></a></li>
            
		<?php $class = $sf_context->getModuleName() == 'excel_processing' ? 'active' : ''; ?>
            <li class="graphs"><a href="<?php echo  url_for("excel_processing/index")?>" title="" class="<?php echo $class?>"><span>Excel data processing</span></a></li>	     
            
		<?php $class = $sf_context->getModuleName() == 'copy_contents' ? 'active' : ''; ?>
            <li class="graphs"><a href="<?php echo  url_for("copy_contents/index")?>" title="" class="<?php echo $class?>"><span>Copy category contents</span></a></li>	            
            		                                        
            		                     
        </ul>
    </div>
    
    <!-- Content -->
    <div class="content">
            <?php echo $sf_content ?>
    </div>
</div>

<div class="fix"></div>


<!-- Footer -->
<div id="footer">
	<div class="wrapper">
    	<span>&copy; Copyright 2011. All rights reserved.  <a href="#" title="">Everymundo LLC</a></span>
    </div>
</div>
  </body>
  
  <script>

    $(document).ajaxStart(function(){
		  $('#filter_ajax_loader').show();
		}).ajaxStop(function(){
		  $('#filter_ajax_loader').hide();
		})
		
</script>
</html>
